﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.Entity;
using Microsoft.ApplicationBlocks.Data;

namespace ClassProject.DAL
{
    class CalendarStartDAL:ADONET
    {
        CalendarStartEntity calendarStartEntity= new CalendarStartEntity();

        public CalendarStartDAL()
        {
            
        }

        #region Insert data table CalendarStart
        public int Insert()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarStart_Insert", calendarStartEntity.Title, calendarStartEntity.Date);
            return i;
        }
        #endregion

        #region Update data table CalendarStart
        public int Update()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarStart_Update", calendarStartEntity.Title, calendarStartEntity.Date, calendarStartEntity.CalendarID);
            return i;
        }
        #endregion

        #region Delete data table CalendarStart
        public int Delete()
        {
            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_CalendarStart_Delete", calendarStartEntity.CalendarID);
            return i;
        }
        #endregion
    }
}
